import Vue from 'vue';
import Router from 'vue-router';

 

Vue.use(Router);

export default new Router({
    mode: "history",
    routes: [
        {
            path: '/',
            component: () => import(/* webpackChunkName: "login" */ '@/components/page/Login.vue')
        },
        {
            path: '/home',
            name:"Home",
            component: () => import(/* webpackChunkName: "home" */ '@/components/common/Home.vue'),
            redirect:"/input",
            children: [
                {    
                    path: '/input',
                    name: "Input",
                    component: () => import(/* webpackChunkName: "login" */ '@/views/Input.vue')
                } ,
                {
                    path: '/output',
                    name: "Output",
                    component: () => import(/* webpackChunkName: "login" */ '@/views/Output.vue')
                } ,
                {
                    path: '/company',
                    name: "Company",
                    component: () => import(/* webpackChunkName: "login" */ '@/views/Company.vue')
                }
               
            ]
        } 

    ]
});
